package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.model.dto.CourseTeacherDto;
import com.xuecheng.content.model.po.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-10-07
 */
public interface CourseTeacherService extends IService<CourseTeacher> {

    /**
     * 根据课程id查询教师信息
     * @param courseId
     * @return
     */
    List<CourseTeacherDto> list(Long courseId);

    /**
     * 修改教师信息
     * @param courseTeacherDto
     */
    CourseTeacherDto updateInfo(CourseTeacherDto courseTeacherDto);

    /**
     * 删除教师信息
     * @param courseId
     * @param id
     */
    void delete(Long courseId, Long id);

    /**
     * 新增教师信息
     * @param courseTeacherDto
     */
    CourseTeacherDto add(CourseTeacherDto courseTeacherDto);
}
